package com.wulian.user.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.wulian.user.dto.DirectLeadership;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wulian.common.entity.User;
import com.wulian.user.mapper.UserMapper;
import com.wulian.user.service.UserService;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	@Autowired
	private UserMapper userMapper;


	@Override
	public Page<DirectLeadership> getCompanyUser(Page<DirectLeadership> page ,Map<String, Object> param) {
		List<DirectLeadership> companyUser = userMapper.getCompanyUser(page,param);
		page.setRecords(companyUser);
		return page;
	}

}
